﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace WpfAGVSystem.Migrations
{
    public partial class mzyh : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "TaskTypeEmpty",
                table: "FinishedGet_Entity",
                newName: "TaskTypeOther");

            migrationBuilder.AddColumn<int>(
                name: "GetBackStation",
                table: "Ssx_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "GetPreStation",
                table: "Ssx_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "GetTaskType",
                table: "Ssx_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "PutBackStation",
                table: "Ssx_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "PutPreStation",
                table: "Ssx_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "PutTaskType",
                table: "Ssx_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "GetBackStation",
                table: "Ssx_Entity");

            migrationBuilder.DropColumn(
                name: "GetPreStation",
                table: "Ssx_Entity");

            migrationBuilder.DropColumn(
                name: "GetTaskType",
                table: "Ssx_Entity");

            migrationBuilder.DropColumn(
                name: "PutBackStation",
                table: "Ssx_Entity");

            migrationBuilder.DropColumn(
                name: "PutPreStation",
                table: "Ssx_Entity");

            migrationBuilder.DropColumn(
                name: "PutTaskType",
                table: "Ssx_Entity");

            migrationBuilder.RenameColumn(
                name: "TaskTypeOther",
                table: "FinishedGet_Entity",
                newName: "TaskTypeEmpty");
        }
    }
}
